/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "节点.h"



C_插座基类* f_su_创建节点后端插座(const std::wstring& socketName, E_值类型 type, void* mapdata = nullptr, S_设备环境* ctx = nullptr);


C_插座基类*	f_su_切换后端插座类型(C_节点基类* node, E_插座方向 dir, int16 oldSocketLoc, E_值类型 newType, void* mapdata = nullptr);


void	f_su_重构插座(E_插座方向 方向, C_节点基类* node, std::vector<S_类型名称>& socketType, void* mapdata = nullptr);


void	f_su_插座类型切换到连入的插座类型(C_节点基类* node, E_插座方向 dir, int16 oldSocketLoc, E_值类型 默认类型 = E_值类型::e_插座Type_引用数据);


void	f_su_拷贝插座(C_节点基类* 源节点, C_节点基类* 目标节点, E_插座方向 源插座方向, E_插座方向 目标插座方向);


void	f_su_数据拷贝到GPU(C_插座基类* socket);

//void f_su_单值插座兼容切换(C_节点基类* 节点)